/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.goodsspecs.service;

import java.util.List;

import com.jeeplus.modules.goodsstore.entity.GoodsStore;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.goodsspecs.entity.GoodsSpec;
import com.jeeplus.modules.goodsspecs.mapper.GoodsSpecMapper;

/**
 * 商品规格Service
 * @author w
 * @version 2021-03-22
 */
@Service
@Transactional(readOnly = true)
public class GoodsSpecService extends CrudService<GoodsSpecMapper, GoodsSpec> {

	public GoodsSpec get(String id) {
		return super.get(id);
	}
	
	public List<GoodsSpec> findList(GoodsSpec goodsSpec) {
		return super.findList(goodsSpec);
	}
	
	public Page<GoodsSpec> findPage(Page<GoodsSpec> page, GoodsSpec goodsSpec) {
		return super.findPage(page, goodsSpec);
	}
	
	@Transactional(readOnly = false)
	public void save(GoodsSpec goodsSpec) {
		super.save(goodsSpec);
	}
	
	@Transactional(readOnly = false)
	public void delete(GoodsSpec goodsSpec) {
		super.delete(goodsSpec);
	}

	@Transactional(readOnly = false)
	public void offShelf(GoodsStore goodsStore) {
		mapper.offShelf(goodsStore);
	}
}